import request from '@/utils/request'

// 查询活动照片列表
export function listActivityPhotos(query) {
  return request({
    url: '/activity/activityPhotos/list',
    method: 'get',
    params: query
  })
}

// 查询活动照片详细
export function getActivityPhotos(photoId) {
  return request({
    url: '/activity/activityPhotos/' + photoId,
    method: 'get'
  })
}

// 新增活动照片
export function addActivityPhotos(data) {
  return request({
    url: '/activity/activityPhotos',
    method: 'post',
    data: data
  })
}

// 修改活动照片
export function updateActivityPhotos(data) {
  return request({
    url: '/activity/activityPhotos',
    method: 'put',
    data: data
  })
}

// 删除活动照片
export function delActivityPhotos(photoId) {
  return request({
    url: '/activity/activityPhotos/' + photoId,
    method: 'delete'
  })
}
